package com.ziyu.system.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.ziyu.api.system.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
@DS("mysqlop")
public interface SysUserMapper extends BaseMapper<SysUser> {

    @Select("select * from sys_user ${ew.customSqlSegment}")
    List<SysUser> getAll(@Param(Constants.WRAPPER) Wrapper wrapper);

}
